home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / system / flicb_1.6 / flicb_1 / flicb / help-screen.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-11  |  2.7 KB  |  76 lines

  1. /* Fairlight's ICB Client                                                    */
  2. /* Copyright 1994, Mark Luljak <fairlite@arcadia.aldridge.sol.net>           */
  3. /*                                                                           */
  4.  
  5. #include "flicb.h"
  6.  
  7. int help(whelp)
  8. WINDOW *whelp;
  9. {
  10.      char *options[] = {
  11.           "/w [.|groupname] - Who Is On",
  12.           "/n nickname - Change Nickname",
  13.           "/m nickname mesg - Private MSG",
  14.           "/b nickname - Beep Nickname",
  15.           "/k nickname - Kick Nickname",
  16.           "/p nickname - Pass Nickname",
  17.           "/t [topic] - Topic [Change To]",
  18.           "/g group - Join Group",
  19.           "/i nickname - Invite To Group",
  20.           "/s [i|v|s|m|r] - Change Status",
  21.       "/e command - Send results to ICB",
  22.           "/h - This Help Screen",
  23.           "/c - Clear Screen",
  24.           "CONTROL-L - Redraw Screen",
  25.           "CONTROL-P - Pause Screen",
  26.           "CONTROL-N - Toggle /w AutoPause",
  27.           "CONTROL-A - Toggle Message Alert",
  28.           "CONTROL-X - Kill Line",
  29.           "CONTROL-W - Kill Word",
  30.       "<TAB> - /m history control",
  31.           NULL
  32.      };
  33.      int number_of_ops, count, column, row, flag, flag2, pos;
  34.  
  35. /*  Determine Number of Options  */
  36.  
  37.      for (number_of_ops = 0; options[number_of_ops++] != NULL;) {
  38.      }
  39.      number_of_ops--;
  40.  
  41. /*  End Determination */
  42.      touchwin(whelp);
  43.      flag = flag2 = 0;
  44.      center(HELPTITLE, 0, whelp, 1);
  45.      row = INIT_ROW;
  46.      column = 3;
  47.      for (count = 0; count < number_of_ops; count++)  {
  48.           if ((count > (number_of_ops / 2)) && ! flag) {
  49.                column = 41;
  50.                row = INIT_ROW;
  51.                flag = flag2 = 1;
  52.           }
  53.           if (((count == (number_of_ops / 2)) && !(number_of_ops % 2)) && ! flag2) {
  54.                column = 41;
  55.                row = INIT_ROW;
  56.                flag = flag2 = 1;
  57.           }
  58.           noutput(options[count], row++, column, whelp);
  59.      }
  60.      center("***********************************************",12,whelp,1);
  61.      center("*           FairLight's ICB Client            *",13,whelp,1);
  62.      center("*                                             *",14,whelp,1);
  63.      center("*           Written and Designed by           *",15,whelp,1);
  64.      center("*                 Mark Luljak                 *",16,whelp,1);
  65.      center("*       (C) 1994 Braindead Software Ltd.      *",17,whelp,1);
  66.      center("***********************************************",18,whelp,1);
  67.      center("Press any key to return to FLICB", 23, whelp, 1);
  68.      wrefresh(whelp);
  69. #ifndef NOANNOY
  70.      spinner("Dedicated with love to my wife, Kelly!",whelp,20,1);
  71.      center("Press any key to return to FLICB", 23, whelp, 1);
  72. #endif
  73.      return(0);
  74. }
  75.  
  76.